<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8" />
<meta name="keywords" content="家庭" />
<meta name="description" content="" />
<meta name="author" content="ptbb" />
<title>牧谣网</title>
<link rel="stylesheet" type="text/css" href="/assets/<?php echo C::theme_name(); ?>/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="/assets/<?php echo C::theme_name(); ?>/css/muyao.css" />
<script type="text/javascript" src="/assets/<?php echo C::theme_name(); ?>/js/jquery.js"></script>
<script type="text/javascript" src="/assets/<?php echo C::theme_name(); ?>/js/bootstrap.js"></script>
<script type="text/javascript" src="/assets/<?php echo C::theme_name(); ?>/js/jquery.masonry.js"></script>
<script type="text/javascript" src="/assets/<?php echo C::theme_name(); ?>/js/my-main.js"></script>
<style type="text/css">
/* .glist { width:1000px; margin:0 auto; list-style:none; } */
.glist li { display:inline; margin:0 10px 20px 0; padding:6px; border:1px #DDD solid; }
.gitem img, .glist img{
width:180px;
}
</style>
<script type="text/javascript">
$(document).ready(function(){
	var $list= $(".glist");
	$list.imagesLoaded(function(){
	  $list.masonry({
	    itemSelector : ".glist li",
	    columnWidth : 225
	  });
	});
});
</script>
</head>
<body>
	<div class="hdw">
		<div class="navbar navbar-fixed-top">
			<div class="navbar-inner">
				<div class="container">
					<a class="brand" href="/" style="text-decoration:none;">牧谣网</a>
					<div class="nav-collapse">
						<ul class="nav">
							<li class="active"><a href="/">主页</a></li>
							<li><a href="/test.php">测试中心</a></li>
							<li><a href="/index.php?act=logout">注销</a></li>
						</ul>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="bdw container">
		<ul class="glist">
			<?php 
			$pic_dir = 'pics';
			$dir = dir($pic_dir);
			$count = 0;
			while($entry = $dir->read()) {
				if($entry == '.' || $entry == '..') {
					continue;
				}
				$f = $pic_dir.'/'.$entry;
				if(! is_dir($f)) {
					echo '<li><div class="gitem">';
					echo '<a href="/view.php?act=pic&src='.$entry.'"><img src="/'.$f.'" title="'.$entry.'" /></a>';
					echo '</div></li>';
					
					$count++;
				}
				
				if($count >= 50) {
					break;
				}
			}
			
			?>
	</div>
	<div class="ftw well">
		<div class="container">
			<ul class="gfriendlink">
				<li>1</li>
				<li>2</li>
			</ul>
		</div>
	</div>
</body>